#include <bits/stdc++.h>
using namespace std;

const int N = 1e5 + 10;
int a[N];
bool sta[N];
int n;
int main()
{
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    cin >> n;
    int ans = n;
    for(int i = 1; i <= n; i++) cin >> a[i];
    n += 1;
    a[n] = 1e9;
    sort(a + 1, a + 1 + n);
    //for(int i = 1; i <= n; i++) cout << a[i] << " ";
    int j = 2;
    for(int i = 1; i < n; i++)
    {
        //int j = i + 1;
        for(; j <= n; j++)
        {
            if(!sta[j] && a[i] < a[j]) break;
        }
        if(j == n) break;
        else ans--, sta[j] = 1;
    }
    cout << ans;
    return 0;
}

// 5 1 2 3 1 2
//10 136 136 136 2417 136 136 2417 136 136 136
